/**
 * Copyright (C), 2019-2022, 宇信融汇
 * FileName: Animal
 * Author:   666
 * Date:     2022/1/15 16:18
 * Description:
 * History:
 * <author>          <time>          <version>          <desc>
 * 666           修改时间           版本号              描述
 */
package com.abstractdemo;

/**
 * @Classname Animal
 * @Description TODO
 * @Date 2022/1/15 16:18
 * @Created by 666
 */
public abstract class Animal {
    private String name;
    public abstract void run();
    public  void eat(){
        System.out.println("吃饭");
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }
}
